from initools.configparser import RawConfigParser

class PeriodicConfigParser(RawConfigParser):

    percent_expand = True
    dollar_expand = True
    safe_set = True
    global_section = True
    section_case_sensitive = False
    inline_comments = False
    continuation_indent = '    '
    inherit_defaults = False
    extendable = True
    
def get_conf(filename):
    cp = PeriodicConfigParser()
    cp.read(filename)
    return cp

